#!/bin/sh
while sleep 60
do
	ping -c 4 www.baidu.com

	if [  $? == 0 ]; then
		/root/ssmtp.sh "network status" "online" "1399092738@qq.com"
	else
		logger "[network status]" "offline"
	fi
done
